package appapi.dao;

import appapi.Request.InspectionPageReq;
import appapi.Request.OnsiteinspectionPageReq;
import appapi.Vo.AddOnsiteinspectionVo;
import appapi.Vo.OnsitPageVo;
import appapi.dto.OnsiteRecModel;
import appapi.entity.Zhongjiao.OnsiteinspectionDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/11 14:11
 * @description:
 */

@Mapper
public interface OnsiteinspectionMapper {
    int deleteByPrimaryKey(Long onsitId);

    int deleteByIds(@Param("onsitIds") List<Long> onsitIds);

    int insert(OnsiteinspectionDto record);

    int insertSelective(OnsiteinspectionDto record);

    OnsiteinspectionDto selectByPrimaryKey(Long onsitId);

    int updateByPrimaryKeySelective(OnsiteinspectionDto record);

    int updateByPrimaryKey(OnsiteinspectionDto record);

    List<Map<String, Object>> selectList(long equip_id);

    List<Map<String, Object>> selectListByMonth(@Param("equipIds") List<Long> equipIds);

    List<Map<String, Object>> selectPageList(OnsiteinspectionPageReq onsiteinspectionPageReq);

    List<OnsitPageVo> selectInspectionPage(InspectionPageReq req);

    List<Map<String, Object>> selectInspectionList(Long equipId);

    Long insertOnsit(AddOnsiteinspectionVo addOnsiteinspectionVo);

    OnsiteRecModel selectModel(Long onsitId);

   Integer getCount(@Param("orgaId") Long orgaId);
}